<!doctype html>
<h1>This page contains a RAF loop and does some measurements of the interval</h1>
<script>
var recent_time_stamps = new Array(10);
var raf_count = 0;

function reset_count() {
  raf_count = 0;
}
function on_raf(t) {
  raf_count++;
  recent_time_stamps.shift();
  recent_time_stamps.push(t);
  window.requestAnimationFrame(on_raf);
}
window.requestAnimationFrame(on_raf);
</script>
